package com.zzl.springboot.entity;

import java.io.Serializable;
import java.util.Date;

public class Vol implements Serializable {
    private Integer id;

    private Integer typeId;

    private String volName;

    private Integer userId;

    private Date createTime;

    private String volMsg;

    private String volImg;

    private Integer userNeed;

    private Integer userMaster;

    private Integer state;

    private VolType type;

    private UserInfo userInfo;

    private static final long serialVersionUID = 1L;

    public Vol(Integer id, Integer typeId, String volName, Integer userId, Date createTime, String volMsg, String volImg, Integer userNeed, Integer userMaster, Integer state) {
        this.id = id;
        this.typeId = typeId;
        this.volName = volName;
        this.userId = userId;
        this.createTime = createTime;
        this.volMsg = volMsg;
        this.volImg = volImg;
        this.userNeed = userNeed;
        this.userMaster = userMaster;
        this.state = state;
    }



    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public VolType getType() {
        return type;
    }

    public void setType(VolType type) {
        this.type = type;
    }

    public Vol() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getVolName() {
        return volName;
    }

    public void setVolName(String volName) {
        this.volName = volName == null ? null : volName.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getVolMsg() {
        return volMsg;
    }

    public void setVolMsg(String volMsg) {
        this.volMsg = volMsg == null ? null : volMsg.trim();
    }

    public String getVolImg() {
        return volImg;
    }

    public void setVolImg(String volImg) {
        this.volImg = volImg == null ? null : volImg.trim();
    }

    public Integer getUserNeed() {
        return userNeed;
    }

    public void setUserNeed(Integer userNeed) {
        this.userNeed = userNeed;
    }

    public Integer getUserMaster() {
        return userMaster;
    }

    public void setUserMaster(Integer userMaster) {
        this.userMaster = userMaster;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", typeId=").append(typeId);
        sb.append(", volName=").append(volName);
        sb.append(", userId=").append(userId);
        sb.append(", createTime=").append(createTime);
        sb.append(", volMsg=").append(volMsg);
        sb.append(", volImg=").append(volImg);
        sb.append(", userNeed=").append(userNeed);
        sb.append(", userMaster=").append(userMaster);
        sb.append(", state=").append(state);
        sb.append("]");
        return sb.toString();
    }
}